package common.xpath;

import common.system.DomTree;
import common.system.FileOperation;
import org.junit.Test;
import org.w3c.dom.Node;

public class MyXpath {





    @Test
    public void testMain(){
        String url = "http://zhannei.baidu.com/cse/search?q=交警&s=2530026475816244436&sti=1440&nsid=0&wt=2&ht=1&pn=10";
        String path = "";
        String content = FileOperation.read("");



        String xpath = "//DIV[@class='result']/H3[contains(@class,'title')]/A" ;

        Node node= DomTree.getNode(content,"utf-8");



    }
}
